
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" href="css/index.css" />
<script type="text/javascript" src="js/jquery-1.8.3.js"></script>	
	<script type="text/javascript">
		 function del(id,name){
		     var f=confirm("你确认要删除吗？");
		     if(f){
                 location.href="delColumn/"+id+"/"+name;
			 }

		 }

        /* $(document).ready(function () {
            if(${count>0}){
                if(${count1>0}){
                    alert("删除成功");
                    location.href="findAllColumn";
				}
			}
		 });*/
	</script>
</head>

<body>
<h2>删除字段</h2>
<form  action="delColumn" id="form1">
	<table border="1" rules="all" align="center"  bordercolor="#000000">
		<tr>
			<!-- <th style="background-color:#666">序号</th> -->
			<th style="background-color:#666;color: white;width:180px">字段名称</th>
			<th style="width: 100px">操作</th>
		</tr>
		<c:forEach var="c" items="${requestScope.list}">
			<tr>
				<td>${c.prop}</td>
				<td><a href="javascript:del('${c.id}','${c.prop}')">删除</a></td>
			</tr>
		</c:forEach>
	</table>
	<div class="go_back"><a href="showAll"><span>返回</span></a></div>
</form>
	
</body>
</html>
